9 while (getline(cin
, s
) && getline(cin
, t
)){
10 //assert(s.find(" ") != string::npos);
11 //assert(s.length() > 0 && t.length() > 0);
12 for (int i
=0; i
<s
.size(); ++i
){
13 if (!isalpha(s
[i
]) || !islower(s
[i
])){
18 for (int i
=0; i
<t
.size(); ++i
){
19 if (!isalpha(t
[i
]) || !islower(t
[i
])){
25 sort(s
.begin(), s
.end());
26 sort(t
.begin(), t
.end());
29 if (s
.size() == 0 || t
.size() == 0){
38 for (int i
=0, j
=0; i
< s
.size() && j
< t
.size();){
46 if (i
== s
.size()) break;
50 if (j
== t
.size()) break;